import request from '@/utils/request'
import { config } from '@/utils/requestconfig'

export function getTopMenus() {
  return request({
    baseURL: config.webapi,
    url: '/Menus/GetTopMenus',
    method: 'get'
  })
}
// /取用户菜单和元素
export function getMenusTree(params) {
  return request({
    baseURL: config.webapi,
    url: '/Menus/GetMenusMoudle',
    method: 'post',
    data: params
  })
}
export function editMenu(params) {
  return request({
    baseURL: config.webapi,
    url: '/Menus/EditMenu',
    method: 'post',
    data: params
  })
}
